package il.ac.biu.cs.grossmm.api.server;

import java.util.EventListener;

/**
 * Server objects which implement this interface will receive server events 
 */
public interface ServerEventListener extends EventListener {
	/**
	 * Invoked when a server event occurs
	 * 
	 * @param hint
	 *            Represents hint for the event source, null if source is the
	 *            framework
	 * @param event
	 *            the event object
	 * @return true iff object understood the event and performed actions
	 *         required by it
	 */
	boolean onEvent(Object hint, Object event);
}
